﻿using System;
using System.Collections.Generic;

namespace SrBBSPro.Entities
{
    public class BugAnalysis
    {
        public long Id { get; set; }

        public string Kind { get; set; }

        public string Pro { get; set; }

        public string KindName
        {
            get => KindDic[Kind];
        }

        private Dictionary<string, string> KindDic = new Dictionary<string, string>()
        {
            { "EveryDay","每日障害发生解决状况"},
            { "Reviser","修正人员进步状况"},
            { "BookDay","预定日前完成状况"},
            { "Tester","测试人员状况"},
            { "BugManager","机能障害对应状况管理表"},
            { "ReasonSmall","机能障害原因统计(小)"},
            { "ReasonBig","机能障害原因统计(大)"},
            { "Scence","机能障害现象统计"},
            { "CodeQuality","制造担当品质"},
            { "TestQuality","测试担当品质"},
            { "SysQuality","机能品质"}
        };

        public Bug  Bug
        {
            get => new Bug();
        }

        public Dictionary<string, string> ReasonSmall
        {
            get => Bug.ReasonSmallDic;       
        }

        public Dictionary<string, string> ReasonBig
        {
            get => Bug.ReasonBigDic;
        }

        public Dictionary<string, string> Scene
        {
            get => Bug.SceneKindDic;
        }
    }
}